# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time

  # See ActionController::RequestForgeryProtection for details
  # Uncomment the :secret if you're not using the cookie session store
  protect_from_forgery # :secret => 'c4107a72ccd5e3ebf4c7157d1c963aa8'
  def auth
	if session[:user_id].nil?
		flash[:notice] = "Please login"
		redirect_to(:controller => "index", :action => "index")
	end
  end

end